﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Manul.Genetics.Genom;

namespace Manul.Genetics.Person
{
    public class Genotype
    {
        public Genotype()
        {
        }
        public List<Gen> this[int i]
        {
            get
            {
                List<Gen> Gens = new List<Gen>();
                foreach (Chromosome chromosome in Chromosomes)
                {
                    if (i < chromosome.Places.Count)
                        Gens.AddRange(chromosome.Places[i].Gens);
                }
                return Gens;
            }
        }
        public List<Chromosome> Chromosomes = new List<Chromosome>(2);
    }
}
